#!/bin/bash

URL=$1
USER=$2
PWD=$3
LOCATION=$4

echo "db migrate: $@"

docker run \
    -v $(pwd):/app \
    boxfuse/flyway:5.2.4 \
    migrate \
    -url=$URL \
    -user=$USER -password=$PWD \
    -locations=filesystem:/app/$LOCATION